-- GENERATED SPELL FOR [Marshlight Bleeder] --


function spell0_18133(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18133', 15000, 1)
end

function spell1_18133(pUnit, Event) --@Vibrant Blood,n/a--
pUnit:FullCastSpellOnTarget(35329,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18133', 2000, 1)
end

function Sorts_18133(pUnit, Event)
local choix_sorts_18133 = math.random(0, 1)
if choix_sorts_18133 == 0 then
pUnit:RegisterEvent('spell0_18133', 1, 1)
end
if choix_sorts_18133 == 1 then
pUnit:RegisterEvent('spell1_18133', 1, 1)
end
end

function mob18133_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18133', math.random(1500, 3000), 1)
end

function mob18133_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18133_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18133_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18133, 1, 'mob18133_Action')
RegisterUnitEvent(18133, 2, 'mob18133_Leave')
RegisterUnitEvent(18133, 3, 'mob18133_Kill')
RegisterUnitEvent(18133, 4, 'mob18133_Die')
